package cn.edu.zut.score.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import cn.edu.zut.score.core.domain.DataLogInfo;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @author zby
 * @since 2021-06-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("config")
@ApiModel("Config对象")
public class Config extends DataLogInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "配置ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "配置项")
    @TableField("config_key")
    private String configKey;

    @ApiModelProperty(value = "配置值")
    @TableField("config_value")
    private String configValue;


}
